package com.us.usws.support.uitls.factory;

/**
 * Service builder
 */
public class ServiceBuilder {

	private ServiceBuilder() {
	}

	/**
	 * build object according to class
	 * @param <T> class type
	 * @param cls target class
	 * @return object
	 */
	public static <T> T build(final Class<T> cls) {
		return ObjectBuilder.newObject(cls);
	}

	/**
	 * build object according class name
	 * @param className name of class
	 * @return object
	 */
	public static Object build(final String className) {
		return ObjectBuilder.newObject(className);
	}
}
